//
//  XS_BuyCourseItemCell.swift
//  XueDao
//
//  Created by 范东 on 2021/1/1.
//

import UIKit

class XS_BuyCourseItemCell: UICollectionViewCell {

    @IBOutlet weak var imgView: UIImageView!
    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var priceLabel: UILabel!
    
    var _model : XS_BuyResponseModel!
    public var model : XS_BuyResponseModel!{
        set{
            _model = newValue
            //设置数据
            imgView.sd_setImage(with: URL.init(string: newValue.cover), completed: nil)
            titleLabel.text = newValue.currName
            priceLabel.text = "￥"+newValue.price
        }
        get{
            return _model
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

}
